<?php

abstract class Action
{
	public function perform()
	{
		if($this->_needProcessing())
			$this->_doAction();
	}
	protected function _needProcessing()
	{
		return Request::isPost();
	}
	abstract public function _doAction();
}